-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add System.PosixCompat.Process #6
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this contribution.
Please add a testcase demonstrating the use of this new module.
Thank you for the speedy review, @andreasabel. I've added a very simple test, though I'm not entirely sure what I could assert in it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the test!
Comment: You seem to never run this on Windows locally, so there is still a build failure due to a typo...
Anyway, I think this can be merged once CI passes.
c41084d
to
42c0d02
Compare
@andreasabel apologies for the back-and-forth, I was hoping the CI would run automatically on PR. I've now discovered that I can enable CI actions on my own fork, so in the future I can test locally before opening a PR. 🙂 |
@andreasabel anything else to be done here or can we merge? |
src/System/PosixCompat/Process.hs
Outdated
|
||
{-| | ||
This module makes the operations exported by @System.Posix.Process@ | ||
available on all platforms. On POSIX systems it re-exports operations from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose this is a more a statement of intent than of actual function.
Currently, it only re-exports a single operation from System.Posix.Process
.
Maybe it could be reformulated as This module intends to make the operations of @System.Posix.Process@ available on all platforms.
What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sounds good; I’m in favour of iteratively improving the docs. Before the next version we could consider rewording the other modules as well.
Do you want this to be released asap or only eventually? |
Ideally I’d like version 0.7.1 sooner rather than later so I can update lsp-client. What I’d like to discuss afterwards is potentially refactoring the partially supported functions (e.g. the ones that throw exceptions on Windows) to a separate module in preparation for 0.8. |
I removed the Haskell warning for shadowing |
Released in 0.7.1. |
This PR adds the
getProcessID
function which is supported on both Unix and Win32 systems. It is already used bylsp-test
andlsp-client
.